﻿@model IEnumerable<Entity.Baskets.Basket>

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<table>
    <tr>
        <th>
            User
        </th>
        <th>
            Product
        </th>
        <th>
            Count
        </th>
    </tr>

@foreach (var item in Model) {

        foreach (var i in item.OrderPosition)
        {    
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.User.Username)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => i.Product.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => i.Count)
                </td>
            </tr>
        }
}

</table>
